<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Graph API: Image filters</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Graph API: Image filters<div class="ingroups"><a class="el" href="../../d2/d00/group__gapi__imgproc.html">G-API Image processing functionality</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaaa26e22b22ad13e3a1ca173c0a652b60"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gaaa26e22b22ad13e3a1ca173c0a652b60">cv::gapi::bilateralFilter</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int d, double sigmaColor, double sigmaSpace, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>)</td></tr>
<tr class="memdesc:gaaa26e22b22ad13e3a1ca173c0a652b60"><td class="mdescLeft"> </td><td class="mdescRight">Applies the bilateral filter to an image.  <a href="../../da/dc5/group__gapi__filters.html#gaaa26e22b22ad13e3a1ca173c0a652b60">More...</a><br/></td></tr>
<tr class="separator:gaaa26e22b22ad13e3a1ca173c0a652b60"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae50f1db53f567b9c846851c6e0d81849"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gae50f1db53f567b9c846851c6e0d81849">cv::gapi::blur</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;ksize, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:gae50f1db53f567b9c846851c6e0d81849"><td class="mdescLeft"> </td><td class="mdescRight">Blurs an image using the normalized box filter.  <a href="../../da/dc5/group__gapi__filters.html#gae50f1db53f567b9c846851c6e0d81849">More...</a><br/></td></tr>
<tr class="separator:gae50f1db53f567b9c846851c6e0d81849"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa37a58b30753913cbcc7f5425726dbd5"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5">cv::gapi::boxFilter</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int dtype, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;ksize, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), bool <a class="el" href="../../d6/d91/group__gapi__transform.html#gaedda08934a12c8b4d8f3c1762f27cacc">normalize</a>=true, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:gaa37a58b30753913cbcc7f5425726dbd5"><td class="mdescLeft"> </td><td class="mdescRight">Blurs an image using the box filter.  <a href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5">More...</a><br/></td></tr>
<tr class="separator:gaa37a58b30753913cbcc7f5425726dbd5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2bbdb0560707a4d2b0b0e3c4bdf41975"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga2bbdb0560707a4d2b0b0e3c4bdf41975">cv::gapi::dilate</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), int iterations=1, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>())</td></tr>
<tr class="memdesc:ga2bbdb0560707a4d2b0b0e3c4bdf41975"><td class="mdescLeft"> </td><td class="mdescRight">Dilates an image by using a specific structuring element.  <a href="../../da/dc5/group__gapi__filters.html#ga2bbdb0560707a4d2b0b0e3c4bdf41975">More...</a><br/></td></tr>
<tr class="separator:ga2bbdb0560707a4d2b0b0e3c4bdf41975"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafa1c08d3a18264ca3089ec843658108b"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gafa1c08d3a18264ca3089ec843658108b">cv::gapi::dilate3x3</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int iterations=1, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>())</td></tr>
<tr class="memdesc:gafa1c08d3a18264ca3089ec843658108b"><td class="mdescLeft"> </td><td class="mdescRight">Dilates an image by using 3 by 3 rectangular structuring element.  <a href="../../da/dc5/group__gapi__filters.html#gafa1c08d3a18264ca3089ec843658108b">More...</a><br/></td></tr>
<tr class="separator:gafa1c08d3a18264ca3089ec843658108b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8d275850ccc5009372dd21237dcf1836"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga8d275850ccc5009372dd21237dcf1836">cv::gapi::erode</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), int iterations=1, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>())</td></tr>
<tr class="memdesc:ga8d275850ccc5009372dd21237dcf1836"><td class="mdescLeft"> </td><td class="mdescRight">Erodes an image by using a specific structuring element.  <a href="../../da/dc5/group__gapi__filters.html#ga8d275850ccc5009372dd21237dcf1836">More...</a><br/></td></tr>
<tr class="separator:ga8d275850ccc5009372dd21237dcf1836"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga48591777d1073198ece7b0f1c2bd885c"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga48591777d1073198ece7b0f1c2bd885c">cv::gapi::erode3x3</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int iterations=1, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>())</td></tr>
<tr class="memdesc:ga48591777d1073198ece7b0f1c2bd885c"><td class="mdescLeft"> </td><td class="mdescRight">Erodes an image by using 3 by 3 rectangular structuring element.  <a href="../../da/dc5/group__gapi__filters.html#ga48591777d1073198ece7b0f1c2bd885c">More...</a><br/></td></tr>
<tr class="separator:ga48591777d1073198ece7b0f1c2bd885c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7f2fc386cd3ecb074d65b3ad124f38eb"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga7f2fc386cd3ecb074d65b3ad124f38eb">cv::gapi::filter2D</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ddepth, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;delta=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0), int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:ga7f2fc386cd3ecb074d65b3ad124f38eb"><td class="mdescLeft"> </td><td class="mdescRight">Convolves an image with the kernel.  <a href="../../da/dc5/group__gapi__filters.html#ga7f2fc386cd3ecb074d65b3ad124f38eb">More...</a><br/></td></tr>
<tr class="separator:ga7f2fc386cd3ecb074d65b3ad124f38eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaca00b81d171421032917e53751ac427"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427">cv::gapi::gaussianBlur</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;ksize, double sigmaX, double sigmaY=0, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:gaaca00b81d171421032917e53751ac427"><td class="mdescLeft"> </td><td class="mdescRight">Blurs an image using a Gaussian filter.  <a href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427">More...</a><br/></td></tr>
<tr class="separator:gaaca00b81d171421032917e53751ac427"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab1e27267574404a1f01016fb9a3a3475"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gab1e27267574404a1f01016fb9a3a3475">cv::gapi::Laplacian</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>)</td></tr>
<tr class="memdesc:gab1e27267574404a1f01016fb9a3a3475"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the Laplacian of an image.  <a href="../../da/dc5/group__gapi__filters.html#gab1e27267574404a1f01016fb9a3a3475">More...</a><br/></td></tr>
<tr class="separator:gab1e27267574404a1f01016fb9a3a3475"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga90c28c4986e8117ecb1b61300ff3e7e8"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8">cv::gapi::medianBlur</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ksize)</td></tr>
<tr class="memdesc:ga90c28c4986e8117ecb1b61300ff3e7e8"><td class="mdescLeft"> </td><td class="mdescRight">Blurs an image using the median filter.  <a href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8">More...</a><br/></td></tr>
<tr class="separator:ga90c28c4986e8117ecb1b61300ff3e7e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8b3991ce1a3aade775abd955d850ec15"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga8b3991ce1a3aade775abd955d850ec15">cv::gapi::morphologyEx</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, const <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga7be549266bad7b2e6a04db49827f9f32">MorphTypes</a> op, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1), const int iterations=1, const <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a> borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>())</td></tr>
<tr class="memdesc:ga8b3991ce1a3aade775abd955d850ec15"><td class="mdescLeft"> </td><td class="mdescRight">Performs advanced morphological transformations.  <a href="../../da/dc5/group__gapi__filters.html#ga8b3991ce1a3aade775abd955d850ec15">More...</a><br/></td></tr>
<tr class="separator:ga8b3991ce1a3aade775abd955d850ec15"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga546a47a68c08bb49bb40825780ffc2e8"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga546a47a68c08bb49bb40825780ffc2e8">cv::gapi::sepFilter</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ddepth, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernelX, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;kernelY, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;anchor, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;delta, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:ga546a47a68c08bb49bb40825780ffc2e8"><td class="mdescLeft"> </td><td class="mdescRight">Applies a separable linear filter to a matrix(image).  <a href="../../da/dc5/group__gapi__filters.html#ga546a47a68c08bb49bb40825780ffc2e8">More...</a><br/></td></tr>
<tr class="separator:ga546a47a68c08bb49bb40825780ffc2e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae1443445c4cb3187dcf439a57cfa534f"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#gae1443445c4cb3187dcf439a57cfa534f">cv::gapi::Sobel</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ddepth, int dx, int dy, int ksize=3, double scale=1, double delta=0, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:gae1443445c4cb3187dcf439a57cfa534f"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.  <a href="../../da/dc5/group__gapi__filters.html#gae1443445c4cb3187dcf439a57cfa534f">More...</a><br/></td></tr>
<tr class="separator:gae1443445c4cb3187dcf439a57cfa534f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga675a82fe875fb789e50dc17ab775f59b"><td align="right" class="memItemLeft" valign="top">std::tuple&lt; <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a>, <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dc5/group__gapi__filters.html#ga675a82fe875fb789e50dc17ab775f59b">cv::gapi::SobelXY</a> (const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp;src, int ddepth, int order, int ksize=3, double scale=1, double delta=0, int borderType=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0))</td></tr>
<tr class="memdesc:ga675a82fe875fb789e50dc17ab775f59b"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.  <a href="../../da/dc5/group__gapi__filters.html#ga675a82fe875fb789e50dc17ab775f59b">More...</a><br/></td></tr>
<tr class="separator:ga675a82fe875fb789e50dc17ab775f59b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaaa26e22b22ad13e3a1ca173c0a652b60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaa26e22b22ad13e3a1ca173c0a652b60">◆ </a></span>bilateralFilter()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::bilateralFilter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>sigmaColor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>sigmaSpace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Applies the bilateral filter to an image. </p>
<p>The function applies bilateral filtering to the input image, as described in <a href="http://www.dai.ed.ac.uk/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html">http://www.dai.ed.ac.uk/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html</a> bilateralFilter can reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared to most filters.</p>
<p><em>Sigma values</em>: For simplicity, you can set the 2 sigma values to be the same. If they are small (&lt; 10), the filter will not have much effect, whereas if they are large (&gt; 150), they will have a very strong effect, making the image look "cartoonish".</p>
<p><em>Filter size</em>: Large filters (d &gt; 5) are very slow, so it is recommended to use d=5 for real-time applications, and perhaps d=9 for offline applications that need heavy noise filtering.</p>
<p>This filter does not work inplace.</p>
<dl class="section note"><dt>Note</dt><dd>Function textual ID is "org.opencv.imgproc.filters.bilateralfilter"</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source 8-bit or floating-point, 1-channel or 3-channel image. </td></tr>
    <tr><td class="paramname">d</td><td>Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace. </td></tr>
    <tr><td class="paramname">sigmaColor</td><td>Filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in larger areas of semi-equal color. </td></tr>
    <tr><td class="paramname">sigmaSpace</td><td>Filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d&gt;0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace. </td></tr>
    <tr><td class="paramname">borderType</td><td>border mode used to extrapolate pixels outside of the image, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Destination image of the same size and type as src. </dd></dl>
</div>
</div>
<a id="gae50f1db53f567b9c846851c6e0d81849"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae50f1db53f567b9c846851c6e0d81849">◆ </a></span>blur()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::blur </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>ksize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Blurs an image using the normalized box filter. </p>
<p>The function smooths an image using the kernel:</p>
<p class="formulaDsp">
\[\texttt{K} = \frac{1}{\texttt{ksize.width*ksize.height}} \begin{bmatrix} 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \\ 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \\ \hdotsfor{6} \\ 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \\ \end{bmatrix}\]
</p>
<p>The call <code>blur(src, ksize, anchor, borderType)</code> is equivalent to <code>boxFilter(src, src.type(), ksize, anchor, true, borderType)</code>.</p>
<p>Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.blur"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">ksize</td><td>blurring kernel size. </td></tr>
    <tr><td class="paramname">anchor</td><td>anchor point; default value Point(-1,-1) means that the anchor is at the kernel center. </td></tr>
    <tr><td class="paramname">borderType</td><td>border mode used to extrapolate pixels outside of the image, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5" title="Blurs an image using the box filter. ">boxFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaa26e22b22ad13e3a1ca173c0a652b60" title="Applies the bilateral filter to an image. ">bilateralFilter</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#gaabe8c836e97159a9193fb0b11ac52cf1" title="Blurs an image using a Gaussian filter. ">GaussianBlur</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8" title="Blurs an image using the median filter. ">medianBlur</a> </dd></dl>
</div>
</div>
<a id="gaa37a58b30753913cbcc7f5425726dbd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa37a58b30753913cbcc7f5425726dbd5">◆ </a></span>boxFilter()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::boxFilter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>ksize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>normalize</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Blurs an image using the box filter. </p>
<p>The function smooths an image using the kernel:</p>
<p class="formulaDsp">
\[\texttt{K} = \alpha \begin{bmatrix} 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \\ 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \\ \hdotsfor{6} \\ 1 &amp; 1 &amp; 1 &amp; \cdots &amp; 1 &amp; 1 \end{bmatrix}\]
</p>
<p>where</p>
<p class="formulaDsp">
\[\alpha = \begin{cases} \frac{1}{\texttt{ksize.width*ksize.height}} &amp; \texttt{when } \texttt{normalize=true} \\1 &amp; \texttt{otherwise} \end{cases}\]
</p>
<p>Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on). If you need to compute pixel sums over variable-size windows, use <a class="el" href="../../d7/d1b/group__imgproc__misc.html#gadeaf38d7701d7ad371278d663c50c77d">cv::integral</a>.</p>
<p>Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.boxfilter"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">dtype</td><td>the output image depth (-1 to set the input image data type). </td></tr>
    <tr><td class="paramname">ksize</td><td>blurring kernel size. </td></tr>
    <tr><td class="paramname">anchor</td><td>Anchor position within the kernel. The default value \((-1,-1)\) means that the anchor is at the kernel center. </td></tr>
    <tr><td class="paramname">normalize</td><td>flag, specifying whether the kernel is normalized by its area or not. </td></tr>
    <tr><td class="paramname">borderType</td><td>Pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga546a47a68c08bb49bb40825780ffc2e8" title="Applies a separable linear filter to a matrix(image). ">sepFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427" title="Blurs an image using a Gaussian filter. ">gaussianBlur</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8" title="Blurs an image using the median filter. ">medianBlur</a>, <a class="el" href="../../d0/d86/group__gapi__matrixop.html#ga9e3e85496c0c314bbb60fabf8eb09c0a" title="Calculates the integral of an image. ">integral</a> </dd></dl>
</div>
</div>
<a id="ga2bbdb0560707a4d2b0b0e3c4bdf41975"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2bbdb0560707a4d2b0b0e3c4bdf41975">◆ </a></span>dilate()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::dilate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>iterations</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Dilates an image by using a specific structuring element. </p>
<p>The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken: </p><p class="formulaDsp">
\[\texttt{dst} (x,y) = \max _{(x',y'): \, \texttt{element} (x',y') \ne0 } \texttt{src} (x+x',y+y')\]
</p>
<p>Dilation can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently. Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, and <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.dilate"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">kernel</td><td>structuring element used for dilation; if elemenat=Mat(), a 3 x 3 rectangular structuring element is used. Kernel can be created using getStructuringElement </td></tr>
    <tr><td class="paramname">anchor</td><td>position of the anchor within the element; default value (-1, -1) means that the anchor is at the element center. </td></tr>
    <tr><td class="paramname">iterations</td><td>number of times dilation is applied. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of a constant border </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga8d275850ccc5009372dd21237dcf1836" title="Erodes an image by using a specific structuring element. ">erode</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga8b3991ce1a3aade775abd955d850ec15" title="Performs advanced morphological transformations. ">morphologyEx</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#gac342a1bb6eabf6f55c803b09268e36dc" title="Returns a structuring element of the specified size and shape for morphological operations. ">getStructuringElement</a> </dd></dl>
</div>
</div>
<a id="gafa1c08d3a18264ca3089ec843658108b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafa1c08d3a18264ca3089ec843658108b">◆ </a></span>dilate3x3()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::dilate3x3 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>iterations</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Dilates an image by using 3 by 3 rectangular structuring element. </p>
<p>The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken: </p><p class="formulaDsp">
\[\texttt{dst} (x,y) = \max _{(x',y'): \, \texttt{element} (x',y') \ne0 } \texttt{src} (x+x',y+y')\]
</p>
<p>Dilation can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently. Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, and <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.dilate"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">iterations</td><td>number of times dilation is applied. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of a constant border </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga2bbdb0560707a4d2b0b0e3c4bdf41975" title="Dilates an image by using a specific structuring element. ">dilate</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga48591777d1073198ece7b0f1c2bd885c" title="Erodes an image by using 3 by 3 rectangular structuring element. ">erode3x3</a> </dd></dl>
</div>
</div>
<a id="ga8d275850ccc5009372dd21237dcf1836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8d275850ccc5009372dd21237dcf1836">◆ </a></span>erode()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::erode </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>iterations</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Erodes an image by using a specific structuring element. </p>
<p>The function erodes the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the minimum is taken:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y) = \min _{(x',y'): \, \texttt{element} (x',y') \ne0 } \texttt{src} (x+x',y+y')\]
</p>
<p>Erosion can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently. Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, and <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.erode"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image </td></tr>
    <tr><td class="paramname">kernel</td><td>structuring element used for erosion; if <code>element=Mat()</code>, a <code>3 x 3</code> rectangular structuring element is used. Kernel can be created using getStructuringElement. </td></tr>
    <tr><td class="paramname">anchor</td><td>position of the anchor within the element; default value (-1, -1) means that the anchor is at the element center. </td></tr>
    <tr><td class="paramname">iterations</td><td>number of times erosion is applied. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of a constant border </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga2bbdb0560707a4d2b0b0e3c4bdf41975" title="Dilates an image by using a specific structuring element. ">dilate</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga8b3991ce1a3aade775abd955d850ec15" title="Performs advanced morphological transformations. ">morphologyEx</a> </dd></dl>
</div>
</div>
<a id="ga48591777d1073198ece7b0f1c2bd885c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga48591777d1073198ece7b0f1c2bd885c">◆ </a></span>erode3x3()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::erode3x3 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>iterations</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Erodes an image by using 3 by 3 rectangular structuring element. </p>
<p>The function erodes the source image using the rectangular structuring element with rectangle center as an anchor. Erosion can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently. Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, and <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.erode"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image </td></tr>
    <tr><td class="paramname">iterations</td><td>number of times erosion is applied. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of a constant border </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga8d275850ccc5009372dd21237dcf1836" title="Erodes an image by using a specific structuring element. ">erode</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gafa1c08d3a18264ca3089ec843658108b" title="Dilates an image by using 3 by 3 rectangular structuring element. ">dilate3x3</a> </dd></dl>
</div>
</div>
<a id="ga7f2fc386cd3ecb074d65b3ad124f38eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7f2fc386cd3ecb074d65b3ad124f38eb">◆ </a></span>filter2D()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::filter2D </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ddepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>delta</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Convolves an image with the kernel. </p>
<p>The function applies an arbitrary linear filter to an image. When the aperture is partially outside the image, the function interpolates outlier pixel values according to the specified border mode.</p>
<p>The function does actually compute correlation, not the convolution:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y) = \sum _{ \substack{0\leq x' &lt; \texttt{kernel.cols}\\{0\leq y' &lt; \texttt{kernel.rows}}}} \texttt{kernel} (x',y')* \texttt{src} (x+x'- \texttt{anchor.x} ,y+y'- \texttt{anchor.y} )\]
</p>
<p>That is, the kernel is not mirrored around the anchor point. If you need a real convolution, flip the kernel using flip and set the new anchor to <code>(kernel.cols - anchor.x - 1, kernel.rows - anchor.y - 1)</code>.</p>
<p>Supported matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same size and number of channels an input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.filter2D"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">ddepth</td><td>desired depth of the destination image </td></tr>
    <tr><td class="paramname">kernel</td><td>convolution kernel (or rather a correlation kernel), a single-channel floating point matrix; if you want to apply different kernels to different channels, split the image into separate color planes using split and process them individually. </td></tr>
    <tr><td class="paramname">anchor</td><td>anchor of the kernel that indicates the relative position of a filtered point within the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor is at the kernel center. </td></tr>
    <tr><td class="paramname">delta</td><td>optional value added to the filtered pixels before storing them in dst. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga546a47a68c08bb49bb40825780ffc2e8" title="Applies a separable linear filter to a matrix(image). ">sepFilter</a> </dd></dl>
</div>
</div>
<a id="gaaca00b81d171421032917e53751ac427"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaca00b81d171421032917e53751ac427">◆ </a></span>gaussianBlur()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::gaussianBlur </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>ksize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>sigmaX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>sigmaY</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Blurs an image using a Gaussian filter. </p>
<p>The function filter2Ds the source image with the specified Gaussian kernel. Output image must have the same type and number of channels an input image.</p>
<p>Supported input matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.gaussianBlur"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image; </td></tr>
    <tr><td class="paramname">ksize</td><td>Gaussian kernel size. ksize.width and ksize.height can differ but they both must be positive and odd. Or, they can be zero's and then they are computed from sigma. </td></tr>
    <tr><td class="paramname">sigmaX</td><td>Gaussian kernel standard deviation in X direction. </td></tr>
    <tr><td class="paramname">sigmaY</td><td>Gaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height, respectively (see <a class="el" href="../../d4/d86/group__imgproc__filter.html#gac05a120c1ae92a6060dd0db190a61afa" title="Returns Gaussian filter coefficients. ">cv::getGaussianKernel</a> for details); to fully control the result regardless of possible future modifications of all this semantics, it is recommended to specify all of ksize, sigmaX, and sigmaY. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga546a47a68c08bb49bb40825780ffc2e8" title="Applies a separable linear filter to a matrix(image). ">sepFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5" title="Blurs an image using the box filter. ">boxFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8" title="Blurs an image using the median filter. ">medianBlur</a> </dd></dl>
</div>
</div>
<a id="gab1e27267574404a1f01016fb9a3a3475"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab1e27267574404a1f01016fb9a3a3475">◆ </a></span>Laplacian()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::Laplacian </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ddepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ksize</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>delta</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Calculates the Laplacian of an image. </p>
<p>The function calculates the Laplacian of the source image by adding up the second x and y derivatives calculated using the Sobel operator:</p>
<p class="formulaDsp">
\[\texttt{dst} = \Delta \texttt{src} = \frac{\partial^2 \texttt{src}}{\partial x^2} + \frac{\partial^2 \texttt{src}}{\partial y^2}\]
</p>
<p>This is done when <code>ksize &gt; 1</code>. When <code>ksize == 1</code>, the Laplacian is computed by filtering the image with the following \(3 \times 3\) aperture:</p>
<p class="formulaDsp">
\[\vecthreethree {0}{1}{0}{1}{-4}{1}{0}{1}{0}\]
</p>
<dl class="section note"><dt>Note</dt><dd>Function textual ID is "org.opencv.imgproc.filters.laplacian"</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">ddepth</td><td>Desired depth of the destination image. </td></tr>
    <tr><td class="paramname">ksize</td><td>Aperture size used to compute the second-derivative filters. See <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga6d6c23f7bd3f5836c31cfae994fc4aea" title="Returns filter coefficients for computing spatial image derivatives. ">getDerivKernels</a> for details. The size must be positive and odd. </td></tr>
    <tr><td class="paramname">scale</td><td>Optional scale factor for the computed Laplacian values. By default, no scaling is applied. See <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga6d6c23f7bd3f5836c31cfae994fc4aea" title="Returns filter coefficients for computing spatial image derivatives. ">getDerivKernels</a> for details. </td></tr>
    <tr><td class="paramname">delta</td><td>Optional delta value that is added to the results prior to storing them in dst . </td></tr>
    <tr><td class="paramname">borderType</td><td>Pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a>. <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661" title="cdefgh|abcdefgh|abcdefg ">BORDER_WRAP</a> is not supported. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Destination image of the same size and the same number of channels as src. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#gae1443445c4cb3187dcf439a57cfa534f" title="Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator...">Sobel</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#gaa13106761eedf14798f37aa2d60404c9" title="Calculates the first x- or y- image derivative using Scharr operator. ">Scharr</a> </dd></dl>
</div>
</div>
<a id="ga90c28c4986e8117ecb1b61300ff3e7e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga90c28c4986e8117ecb1b61300ff3e7e8">◆ </a></span>medianBlur()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::medianBlur </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ksize</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.gapi.medianBlur(</td><td class="paramname">src, ksize</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Blurs an image using the median filter. </p>
<p>The function smoothes an image using the median filter with the \(\texttt{ksize} \times \texttt{ksize}\) aperture. Each channel of a multi-channel image is processed independently. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest. The median filter uses <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aa1de4cff95e3377d6d0cbe7569bd4e9f" title="aaaaaa|abcdefgh|hhhhhhh ">cv::BORDER_REPLICATE</a> internally to cope with border pixels, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a></li>
<li>Function textual ID is "org.opencv.imgproc.filters.medianBlur"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input matrix (image) </td></tr>
    <tr><td class="paramname">ksize</td><td>aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ... </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5" title="Blurs an image using the box filter. ">boxFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427" title="Blurs an image using a Gaussian filter. ">gaussianBlur</a> </dd></dl>
</div>
</div>
<a id="ga8b3991ce1a3aade775abd955d850ec15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8b3991ce1a3aade775abd955d850ec15">◆ </a></span>morphologyEx()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::morphologyEx </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga7be549266bad7b2e6a04db49827f9f32">MorphTypes</a> </td>
          <td class="paramname"><em>op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(-1,-1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>iterations</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a> </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a">morphologyDefaultBorderValue</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Performs advanced morphological transformations. </p>
<p>The function can perform advanced morphological transformations using an erosion and dilation as basic operations.</p>
<p>Any of the operations can be done in-place. In case of multi-channel images, each channel is processed independently.</p>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>Function textual ID is "org.opencv.imgproc.filters.morphologyEx"</li>
<li>The number of iterations is the number of times erosion or dilatation operation will be applied. For instance, an opening operation (<a class="el" href="../../d4/d86/group__imgproc__filter.html#gga7be549266bad7b2e6a04db49827f9f32a08d3cc3a2ace00cec488966d31fa29ea">MORPH_OPEN</a>) with two iterations is equivalent to apply successively: erode -&gt; erode -&gt; dilate -&gt; dilate (and not erode -&gt; dilate -&gt; erode -&gt; dilate).</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Input image. </td></tr>
    <tr><td class="paramname">op</td><td>Type of a morphological operation, see <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga7be549266bad7b2e6a04db49827f9f32" title="type of morphological operation ">MorphTypes</a> </td></tr>
    <tr><td class="paramname">kernel</td><td>Structuring element. It can be created using <a class="el" href="../../d4/d86/group__imgproc__filter.html#gac342a1bb6eabf6f55c803b09268e36dc" title="Returns a structuring element of the specified size and shape for morphological operations. ">getStructuringElement</a>. </td></tr>
    <tr><td class="paramname">anchor</td><td>Anchor position within the element. Both negative values mean that the anchor is at the kernel center. </td></tr>
    <tr><td class="paramname">iterations</td><td>Number of times erosion and dilation are applied. </td></tr>
    <tr><td class="paramname">borderType</td><td>Pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a>. <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661" title="cdefgh|abcdefgh|abcdefg ">BORDER_WRAP</a> is not supported. </td></tr>
    <tr><td class="paramname">borderValue</td><td>Border value in case of a constant border. The default value has a special meaning. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga2bbdb0560707a4d2b0b0e3c4bdf41975" title="Dilates an image by using a specific structuring element. ">dilate</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga8d275850ccc5009372dd21237dcf1836" title="Erodes an image by using a specific structuring element. ">erode</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#gac342a1bb6eabf6f55c803b09268e36dc" title="Returns a structuring element of the specified size and shape for morphological operations. ">getStructuringElement</a> </dd></dl>
</div>
</div>
<a id="ga546a47a68c08bb49bb40825780ffc2e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga546a47a68c08bb49bb40825780ffc2e8">◆ </a></span>sepFilter()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::sepFilter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ddepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernelX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>kernelY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>anchor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Applies a separable linear filter to a matrix(image). </p>
<p>The function applies a separable linear filter to the matrix. That is, first, every row of src is filtered with the 1D kernel kernelX. Then, every column of the result is filtered with the 1D kernel kernelY. The final result is returned.</p>
<p>Supported matrix data types are <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga404fd4e4553b57c481b7fac31aedcd2b">CV_16UC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga3515053e24377cf079fa1027d208ad52">CV_16SC1</a>, <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga32ec76240e43e4c9c7b2e2785180a7e6">CV_32FC1</a>. Output image must have the same type, size, and number of channels as the input image. </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>In case of floating-point computation, rounding to nearest even is procedeed if hardware supports it (if not - to nearest value).</li>
<li>Function textual ID is "org.opencv.imgproc.filters.sepfilter" </li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">ddepth</td><td>desired depth of the destination image (the following combinations of <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src.depth()</a> and ddepth are supported: <pre class="fragment">    src.depth() = CV_8U, ddepth = -1/CV_16S/CV_32F/CV_64F
    src.depth() = CV_16U/CV_16S, ddepth = -1/CV_32F/CV_64F
    src.depth() = CV_32F, ddepth = -1/CV_32F/CV_64F
    src.depth() = CV_64F, ddepth = -1/CV_64F
</pre></td></tr>
  </table>
  </dd>
</dl>
<p>when ddepth=-1, the output image will have the same depth as the source) </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">kernelX</td><td>Coefficients for filtering each row. </td></tr>
    <tr><td class="paramname">kernelY</td><td>Coefficients for filtering each column. </td></tr>
    <tr><td class="paramname">anchor</td><td>Anchor position within the kernel. The default value \((-1,-1)\) means that the anchor is at the kernel center. </td></tr>
    <tr><td class="paramname">delta</td><td>Value added to the filtered results before storing them. </td></tr>
    <tr><td class="paramname">borderType</td><td>Pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#gaa37a58b30753913cbcc7f5425726dbd5" title="Blurs an image using the box filter. ">boxFilter</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427" title="Blurs an image using a Gaussian filter. ">gaussianBlur</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#ga90c28c4986e8117ecb1b61300ff3e7e8" title="Blurs an image using the median filter. ">medianBlur</a> </dd></dl>
</div>
</div>
<a id="gae1443445c4cb3187dcf439a57cfa534f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae1443445c4cb3187dcf439a57cfa534f">◆ </a></span>Sobel()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> cv::gapi::Sobel </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ddepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ksize</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>delta</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator. </p>
<p>In all cases except one, the \(\texttt{ksize} \times \texttt{ksize}\) separable kernel is used to calculate the derivative. When \(\texttt{ksize = 1}\), the \(3 \times 1\) or \(1 \times 3\) kernel is used (that is, no Gaussian smoothing is done). <code>ksize = 1</code> can only be used for the first or the second x- or y- derivatives.</p>
<p>There is also the special value <code>ksize = FILTER_SCHARR (-1)</code> that corresponds to the \(3\times3\) Scharr filter that may give more accurate results than the \(3\times3\) Sobel. The Scharr aperture is</p>
<p class="formulaDsp">
\[\vecthreethree{-3}{0}{3}{-10}{0}{10}{-3}{0}{3}\]
</p>
<p>for the x-derivative, or transposed for the y-derivative.</p>
<p>The function calculates an image derivative by convolving the image with the appropriate kernel:</p>
<p class="formulaDsp">
\[\texttt{dst} = \frac{\partial^{xorder+yorder} \texttt{src}}{\partial x^{xorder} \partial y^{yorder}}\]
</p>
<p>The Sobel operators combine Gaussian smoothing and differentiation, so the result is more or less resistant to the noise. Most often, the function is called with ( xorder = 1, yorder = 0, ksize = 3) or ( xorder = 0, yorder = 1, ksize = 3) to calculate the first x- or y- image derivative. The first case corresponds to a kernel of:</p>
<p class="formulaDsp">
\[\vecthreethree{-1}{0}{1}{-2}{0}{2}{-1}{0}{1}\]
</p>
<p>The second case corresponds to a kernel of:</p>
<p class="formulaDsp">
\[\vecthreethree{-1}{-2}{-1}{0}{0}{0}{1}{2}{1}\]
</p>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.sobel"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">ddepth</td><td>output image depth, see <a class="el" href="../../d4/d86/group__imgproc__filter.html#filter_depths">combinations</a>; in the case of 8-bit input images it will result in truncated derivatives. </td></tr>
    <tr><td class="paramname">dx</td><td>order of the derivative x. </td></tr>
    <tr><td class="paramname">dy</td><td>order of the derivative y. </td></tr>
    <tr><td class="paramname">ksize</td><td>size of the extended Sobel kernel; it must be odd. </td></tr>
    <tr><td class="paramname">scale</td><td>optional scale factor for the computed derivative values; by default, no scaling is applied (see <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga6d6c23f7bd3f5836c31cfae994fc4aea" title="Returns filter coefficients for computing spatial image derivatives. ">cv::getDerivKernels</a> for details). </td></tr>
    <tr><td class="paramname">delta</td><td>optional delta value that is added to the results prior to storing them in dst. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga7f2fc386cd3ecb074d65b3ad124f38eb" title="Convolves an image with the kernel. ">filter2D</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427" title="Blurs an image using a Gaussian filter. ">gaussianBlur</a>, <a class="el" href="../../da/dd3/group__gapi__math.html#ga3e20a87f89b397c27a9a8bfd57ff0180" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a> </dd></dl>
</div>
</div>
<a id="ga675a82fe875fb789e50dc17ab775f59b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga675a82fe875fb789e50dc17ab775f59b">◆ </a></span>SobelXY()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::tuple&lt;<a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a>, <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a>&gt; cv::gapi::SobelXY </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/daa/classcv_1_1GMat.html">GMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ddepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>order</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ksize</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>delta</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">BORDER_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html">opencv2/gapi/imgproc.hpp</a>&gt;</code></p>
<p>Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator. </p>
<p>In all cases except one, the \(\texttt{ksize} \times \texttt{ksize}\) separable kernel is used to calculate the derivative. When \(\texttt{ksize = 1}\), the \(3 \times 1\) or \(1 \times 3\) kernel is used (that is, no Gaussian smoothing is done). <code>ksize = 1</code> can only be used for the first or the second x- or y- derivatives.</p>
<p>There is also the special value <code>ksize = FILTER_SCHARR (-1)</code> that corresponds to the \(3\times3\) Scharr filter that may give more accurate results than the \(3\times3\) Sobel. The Scharr aperture is</p>
<p class="formulaDsp">
\[\vecthreethree{-3}{0}{3}{-10}{0}{10}{-3}{0}{3}\]
</p>
<p>for the x-derivative, or transposed for the y-derivative.</p>
<p>The function calculates an image derivative by convolving the image with the appropriate kernel:</p>
<p class="formulaDsp">
\[\texttt{dst} = \frac{\partial^{xorder+yorder} \texttt{src}}{\partial x^{xorder} \partial y^{yorder}}\]
</p>
<p>The Sobel operators combine Gaussian smoothing and differentiation, so the result is more or less resistant to the noise. Most often, the function is called with ( xorder = 1, yorder = 0, ksize = 3) or ( xorder = 0, yorder = 1, ksize = 3) to calculate the first x- or y- image derivative. The first case corresponds to a kernel of:</p>
<p class="formulaDsp">
\[\vecthreethree{-1}{0}{1}{-2}{0}{2}{-1}{0}{1}\]
</p>
<p>The second case corresponds to a kernel of:</p>
<p class="formulaDsp">
\[\vecthreethree{-1}{-2}{-1}{0}{0}{0}{1}{2}{1}\]
</p>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>First returned matrix correspons to dx derivative while the second one to dy.</li>
<li>Rounding to nearest even is procedeed if hardware supports it, if not - to nearest.</li>
<li>Function textual ID is "org.opencv.imgproc.filters.sobelxy"</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">ddepth</td><td>output image depth, see <a class="el" href="../../d4/d86/group__imgproc__filter.html#filter_depths">combinations</a>; in the case of 8-bit input images it will result in truncated derivatives. </td></tr>
    <tr><td class="paramname">order</td><td>order of the derivatives. </td></tr>
    <tr><td class="paramname">ksize</td><td>size of the extended Sobel kernel; it must be odd. </td></tr>
    <tr><td class="paramname">scale</td><td>optional scale factor for the computed derivative values; by default, no scaling is applied (see <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga6d6c23f7bd3f5836c31cfae994fc4aea" title="Returns filter coefficients for computing spatial image derivatives. ">cv::getDerivKernels</a> for details). </td></tr>
    <tr><td class="paramname">delta</td><td>optional delta value that is added to the results prior to storing them in dst. </td></tr>
    <tr><td class="paramname">borderType</td><td>pixel extrapolation method, see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> </td></tr>
    <tr><td class="paramname">borderValue</td><td>border value in case of constant border type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/dc5/group__gapi__filters.html#ga7f2fc386cd3ecb074d65b3ad124f38eb" title="Convolves an image with the kernel. ">filter2D</a>, <a class="el" href="../../da/dc5/group__gapi__filters.html#gaaca00b81d171421032917e53751ac427" title="Blurs an image using a Gaussian filter. ">gaussianBlur</a>, <a class="el" href="../../da/dd3/group__gapi__math.html#ga3e20a87f89b397c27a9a8bfd57ff0180" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a> </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
